#include <math.h>
#include <stdio.h>

void main() {
  FILE * arq = NULL;
  int num, soma, i, j;
	
  if((arq = fopen("arq_701_2.txt","r")) != NULL) {	
	for (j = 0; j < 5; j++) { 
	  soma = 0;
	  for(i = 0; i < 5; i++) {
		fscanf(arq, "%d", &num); 
		soma = soma + num;
	  }
	  printf("%d\n", soma); 
	}
	fclose(arq);			
  }
}
